package com.lis.mango.controller;


import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.lis.mango.entity.SysUser;
import com.lis.mango.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 机构管理 前端控制器
 * </p>
 *
 * @author sun
 * @since 2021-09-08
 */
@RestController
@RequestMapping("/user")
public class SysUserController {
    @Autowired
    ISysUserService UserService;
     @PostMapping("/getUser")
    public SysUser getUser() {
        return UserService.getById(1);
    }

    @GetMapping("/findAll")
    public List<SysUser> findAll() {
        return UserService.findAll();
    }

}
